<%--
  Created by IntelliJ IDEA.
  User: This
  Date: 2019/7/15
  Time: 8:40
  To change this template use File | Settings | File Templates.
--%>
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<div class="span2" id="sidebar">
    <ul id="left_menu" class="nav nav-list bs-docs-sidenav nav-collapse collapse"><%--左侧导航栏--%>
        <li id="left_index" class="active"><a href="page_index">首页</a></li>
    </ul>
</div>
<%--
<script>
    $(function () {
        console.log(33333);
        $.ajax({
            url: "${rootPath}/menu_getAll",
            dataType: "json",
            type: "post",
            success: function (data) {
                console.log(44444);
                console.log(data);
                var left_menu = data.left_menu;
                var top_menu = data.top_menu;
                var menus = getMenu(top_menu, '首页', left_menu, '首页');
                var html = $("#left_menu").html();
                var top_html = $("#top_menu").html();
                $("#left_menu").html(html + menus.left);
                $("#top_menu").html(top_html + menus.top);
                console.log(menus);
            }
        });
    });
</script>--%>
